<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
	<style type="text/css">

	p.link {font-family:"Times New Roman",Georgia,Serif;font-size:100px;}

	</style>
</head>

<?php
include 'config.php';
include 'add_comment.php';
$tid=$_POST['tid'];
$content=$_POST["content"];
date_default_timezone_set("PRC");
$public=date("Y-m-d H:i:s");

/*$uid=$_SESSION['uid'];*/$uid=1;
$addcomment=new AddComment($uid,$tid,$content,$public);

echo "评论成功！";

?>
<p class="link"><a href=<?php echo '"'.'detail_information.php?tid='.$tid.'&page=1'.'"'; ?>>返回</a></p>
</body>
</html>